package zl.bean;


import java.util.Date;

/**
 * @author sunping
 * @create 2017/8/21
 */
public class BaseDO {
	private Long id;
	private Date createDate;
	private Date updateDate;
	private Integer delFlag;
	private Long shardValue = 0l;

	/**
	 * 初始化
	 */
	public void init() {
		if (this.id == null) {
			//this.id = SnowflakeIdWorker.getNextId();
		}
		delFlag = 0;
		this.createDate = new Date();
		this.updateDate = new Date();
	}

	public Long getShardValue() {
		return shardValue;
	}

	public void setShardValue(Long shardValue) {
		this.shardValue = shardValue;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}
}
